#include"proccess1.h"
#include<time.h>
#include<stdlib.h>
#include<unistd.h>

typedef void (*flash_pace)(double space,double total);

void load(flash_pace f)
{
  
  double total=2024.0;
  const int banic=100;
  double space=0;
  double once=0.5;
  while(space<total)
  {
      double speed=0;
      int r=rand()%banic+1;
      speed=r*once;
      space+=speed;
      if(space>=total)
      {
        space=total;
      }
      usleep(50000);
      f(space,total);

  }
  printf("\r\n");
  
}
int main()
{

  srand(time(NULL));
  load(pace);

  return 0;
}
